package pers.cz.common.sharding;

import java.util.List;

/**
 * @program: Jef-orm
 * @description: 抽象分表接口
 * @author: Cheng Zhi
 * @create: 2023-11-01 14:43
 **/
public interface ShardingRule {

    public void clearShardingRule();

    public void addShardingRule(Object value, ShardingStrategy shardingStrategy, String modulus, String appender);

    public void addShardingRule(Object value, ShardingStrategy shardingStrategy);

    public void addShardingRule(Object value, ShardingStrategy shardingStrategy, String modulus);

    public List<Ruling> getShardingRule();
}
